#pragma once
#include<string>
using namespace std;

class IVisitor;
class Student
{
public:
	Student(string name);
	~Student(void);
	virtual int Pay(int nMoney);
	void SetMoney(int nMoney);
	const string &GetName() const;
	virtual void Accept(IVisitor *pVisitor) = 0;
private:
	string m_sName;
	int m_nMoney;
};

